const fs = require("fs");
const path = require("path");

function readJSON(filePath) {
  const pathFile = path.join(__dirname, 'responses', filePath)
  const file = fs.readFileSync(pathFile, "utf8");
  return JSON.parse(file);
}

module.exports = readJSON